class MyMath:
    # 加
    def add(self, a, b):
        return a + b

    # 减
    def sub(self, a, b):
        return a - b

    # 乘
    def mul(self, a, b):
        return a * b

    # 除
    def div(self, a, b):
        return a / b

    # 取余
    def remainder(self, a, b):
        return a % b

    # 开方
    def squ(self, a, b):
        return a ** (1 / b)

    # 取整
    def aliquot(self, a, b):
        return a // b


class People:
    def __init__(self, name, age, sex):
        self.name = name
        self.age = age
        self.sex = sex

    def zoulu(self):
        print("跑步")


class ChinesePeople(People):
    def zoulu(self):
        print("11路")


class AmericanPeaple(People):
    def zoulu(self):
        print("by car")


a = MyMath()
b = a.add(1, 2)
print(b)

maliya = AmericanPeaple("maliya", 29, "女")
maliya.zoulu()

laowu= ChinesePeople("laowu", 18, "男")
print(laowu.name)
